package com.huirui.server.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName t_product_category_relation
 */
@TableName(value ="t_product_category_relation")
@Data
@Accessors(chain = true)
public class ProductCategoryRelation implements Serializable {
    /**
     * 关联表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 商品-分类关联表
     */
    @TableField(value = "category_id")
    private Long categoryId;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}